Configure Port Lock
About this task
Configure port lock to administratively lock a port or ports to prevent other users from changing port parameters or modifying port action. You cannot modify a locked port until you unlock the port.
Procedure
Example
Switch:1> enable
Switch:1# configure terminal
Log on to GigabitEthernet Interface Configuration mode:
Switch:1(config)# interface GigabitEthernet 1/1
Unlock port 1/14:
Switch:1(config-if)# no lock port 1/14 enable
Variable Definitions
The following table defines parameters for the interface gigabitethernet and lock port commands.
Variable |
Value |
---|---|
{slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} |
Identifies the
slot and port in one of the following formats:
For the lock port command, use the no form of this command to unlock a port: no lock port {slot/port[/sub-port][-slot/port[/sub-port]][,...]} |